/*
Name: Kabir Kang
Original Coder: sanforch
Card: Minion Test
8/17/2014
*/

#include <string.h>
#include <stdio.h>
#include "dominion.h"
#include "dominion_helpers.h"

int main(int argc, char * argv[])
{
  int seed = 100;
  int numPlayers = 2;
  int preHandCount1 = 1;
  int preHandCount2 = 6;
  
int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

  struct gameState g;
  initializeGame(numPlayers, k, seed, &g);

  g.handCount[0] = preHandCount1;
  g.handCount[1] = preHandCount2;

  cardEffect(minion, 0, 1, 0, &g, 1, 0); //choice 2 is selected in this case

  printf("Player1 handcount: %d\n", g.handCount[0]);
  printf("Player2 handcount: %d\n", g.handCount[1]);

  //both players must now have 4 cards
  if (g.handCount[0] == 4)
    printf("minion: PASS cards for player 1 are gained and discarded correctly. \n");
  else
    printf("minion: FAIL cards for p1 aren't added and discarded correctly. \n");

  if (g.handCount[1] == 4)
    printf("minion: PASS cards for P2 are gained and discarded correctly. \n");
  else
    printf("minion: FAIL cards for P2 aren't added and discarded correctly. \n");

  
  return 0;
}
